package com.yunhe.fountain.service;

import com.yunhe.fountain.domain.Fountain;

import java.io.IOException;
import java.util.List;

/**
 * @author zhengbo
 * @date 2021/7/8 10:20
 */
public interface FountainControlService {

    /**
     * 发送指令
     * @param fountain
     * @return
     * connection_success       连接成功
     * connection_fail          建立连接失败
     * carry_on_success         继续成功
     * carry_on_fail            继续失败
     * stop_fail                停止失败
     * stop_success             停止成功
     * start_program_fail       开启节目失败
     * start_program_success    开启节目成功
     * issue_order_fail         下发指令失败
     */
    String sendCommand(Fountain fountain);

    /**
     * 建立连接
     * @param fountain
     * @return String connection_success连接成功 connection_fail连接失败
     */
    Fountain establishConnection(Fountain fountain) throws IOException;

    List<Fountain> getFountainControl();

}
